package com.example.demo.dubbo;

import com.example.demo.api.HelloService;
import org.apache.dubbo.config.annotation.DubboService;

//@org.apache.dubbo.config.annotation.Service(version = "1.0.0", protocol = { "dubbo", "rest" })
//@DubboService(version = "1.0.0", protocol = { "dubbo", "rest" })
//@DubboService(version = "1.0.0", protocol = "dubbo")
@DubboService
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        return "Hello " + name;
    }
}